package com.base.app_core.service.user.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by jiansheng.li on 2017/11/27.
 */

public class BankInfo implements Parcelable {
	/**
	 * id : 11
	 * bankname : 民生银行
	 * cardno : 6217000288884466
	 * username : 杨星星
	 */

	private int id;
	private String bankname;
	private String cardno;
	private String username;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getBankname() {
		return bankname;
	}

	public void setBankname(String bankname) {
		this.bankname = bankname;
	}

	public String getCardno() {
		return cardno;
	}

	public void setCardno(String cardno) {
		this.cardno = cardno;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(this.id);
		dest.writeString(this.bankname);
		dest.writeString(this.cardno);
		dest.writeString(this.username);
	}

	public BankInfo() {
	}

	protected BankInfo(Parcel in) {
		this.id = in.readInt();
		this.bankname = in.readString();
		this.cardno = in.readString();
		this.username = in.readString();
	}

	public static final Creator<BankInfo> CREATOR = new Creator<BankInfo>() {
		@Override
		public BankInfo createFromParcel(Parcel source) {
			return new BankInfo(source);
		}

		@Override
		public BankInfo[] newArray(int size) {
			return new BankInfo[size];
		}
	};
}
